package com.example.cloudalibaba.service;

import com.example.springcloud.entity.CommonResult;
import com.example.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @author chensixiang chensixiang1234@gmail.com
 */
@Component
public class PaymentServiceFallBack implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(44444, "服务降级返回----PaymentServiceFallBack", new Payment(id, "null"));
    }
}
